<!-- Begin hrmd/event.tpl -->
<form method="post" action="?module=hrmd&action=score_user&submit=true">
{opentable}
{if $idusr eq $smarty.session.userid}
	{titlebar colspan=2 title=$lg->perf}	
{else}
	<tr><td class="titlebar" colspan=2 >{$lg->perf} : {uname_detail id=$idusr}</th></tr>
{/if}
<tr>{$perio}</tr>
{closetable}
<input type="submit" name="submit" class="button" align="left" value={$lg->OK} />
</form>

<br><br>
{opentable}
	<tr class="sectiontableheader" align="center">
		<td width = "10%">{$lg->group}</td>
		<td width = "15%">{$lg->issue}</td>
		<td width = "15%">{$lg->icost}</td>
		<td width = "15%">{$lg->tcost}</td>
		<td width = "15%">{$lg->perf}</td>
		<td width = "15%">{$lg->score}</td>		
	</tr>
	{if is_array($t_edit)}
	{foreach from=$t_edit key=gid item=t_issue}
		<tr class="sectiontableentry2" align="left" >
			<td colspan="6">{groupname id=$gid}</td>
		</tr>
		{foreach from=$t_issue key=iid item=s_issue}
		<tr class="sectiontableentry1" align="center">
			<td></td>
			<td><a href="?module=issues&action=view&issueid={$iid}">{$iid}</a></td>
			<td>{$s_issue.vendu|string_format:"%.2f"}</td>
			<td>{$s_issue.real|string_format:"%.2f"}</td>
			<td>{$s_issue.perf|string_format:"%.2f"}</td>
			<td>{$s_issue.score|string_format:"%.0f"}</td>
		</tr>
		{/foreach}
	{/foreach}
		<tr class="sectiontableentry2" align="center">
			<td><b>{$lg->total}</b></td>
			<td><b>{$ttcknb}</b></td>
			<td></td>
			<td></td>
			<td></td>
			<td><b>{$tscore|string_format:"%.0f"}</b></td>
		</tr>
	{else}
		<tr class="data"><td colspan="6">{$lg->no_data}</td></tr>	
	{/if}
{closetable}
<!-- End hrmd/event.tpl -->